package com.vilen.weixin.kit;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2016/2/17.
 */
public class MessageCreateKit {
    public static Map<String, Object> createTextMsg(Map<String, String> msgMap, String content) {
        Map<String,Object> tm = new HashMap<String, Object>();
        tm.put("ToUserName",msgMap.get("FromUserName"));
        tm.put("FromUserName",msgMap.get("ToUserName"));
        tm.put("CreateTime",System.currentTimeMillis()+"");
        tm.put("MsgType","text");
        tm.put("Content",content);
        return tm;
    }
}
